package com.juntuo.service.impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.juntuo.entity.User;
import com.juntuo.mapper.UserMapper;
import com.juntuo.service.UserService;
import com.juntuo.service.helper.CommonServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 简介：
 * 作者：Jason (chenxj@hadlinks.com)
 * 时间：2018/3/17 14:18
 */
@Service
public class UserServiceImpl extends CommonServiceImpl<User> implements UserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public PageInfo<Map<String,Object>> findPagedUsers(int pageNumber, int pageSize, String username) {
//        PageHelper.startPage(pageNumber,pageSize);
//        List<Map<String,Object>> users=userMapper.selectByName(username);
//        PageInfo pageInfo= new PageInfo(users);
//        return pageInfo;
        return null;
    }
}
